package com.telsoft.hms.lib.admin.client.data;

import com.telsoft.hms.lib.admin.data.DataPreprocessor;
import com.telsoft.hms.lib.data.ConnectionFactory;
import com.telsoft.hms.util.StringUtil;

public class ClientDataPreprocessor extends DataPreprocessor {
	public ClientDataPreprocessor() {
	}

	public void open(String key) throws Exception {
		
		if (mConnection == null || mConnection.isClosed()) {
			// mConnection = ConnectionFactory
			// .getConnection(ConnectionFactory.GroupType.USER);
			mConnection = ConnectionFactory.getConnection(key);
		} else {
			;
		}
	}

	public static int getMaxSessionLogin(String strCode) throws Exception {
		return ConnectionFactory.getSessionLogin(strCode);
	}

}
